from django import forms

from models import Fragrance, Paper, News , Contact
from django.utils.translation import ugettext_lazy as _
class FragranceCreate(forms.ModelForm):
    class Meta:
        model = Fragrance
        #fields: 'id','title','description','picture','price','created','modified',        
        #exclude = ('title','description','picture','price','created','modified',)
        #fields = ('title','description','picture','price','created','modified',)class ContactForm(forms.ModelForm):
        

    name = forms.CharField(label=_("name"), widget=forms.TextInput(attrs={'class':'bg' }))
    email = forms.EmailField(label=_("e-mail"), max_length=75 ,   widget=forms.TextInput(attrs={'class':'bg'  }) ) 
    message = forms.CharField(widget=forms.Textarea(attrs={ "class":"textarea-shark" , "cols":"1" , "rows":"1" }))


    class Meta:
        model = Contact
        #fields: 'id','title','description','picture','price','created','modified',        
        #exclude = ('title','description','picture','price','created','modified',)
        #fields = ('title','description','picture','price','created','modified',)

class FragranceEdit(forms.ModelForm):
    class Meta:
        model = Fragrance
        #fyi fields: 'id','title','description','picture','price','created','modified',        
        #exclude = ('title','description','picture','price','created','modified',)
        #fields = ('title','description','picture','price','created','modified',)


class PaperCreate(forms.ModelForm):
    class Meta:
        model = Paper
        #fields: 'id','title','description','picture','price','type','created','modified',        
        #exclude = ('title','description','picture','price','type','created','modified',)
        #fields = ('title','description','picture','price','type','created','modified',)


class PaperEdit(forms.ModelForm):
    class Meta:
        model = Paper
        #fyi fields: 'id','title','description','picture','price','type','created','modified',        
        #exclude = ('title','description','picture','price','type','created','modified',)
        #fields = ('title','description','picture','price','type','created','modified',)


class NewsCreate(forms.ModelForm):
    class Meta:
        model = News
        #fields: 'id','title','description','picture','price','created','modified',        
        #exclude = ('title','description','picture','price','created','modified',)
        #fields = ('title','description','picture','price','created','modified',)


class NewsEdit(forms.ModelForm):
    class Meta:
        model = News
        #fyi fields: 'id','title','description','picture','price','created','modified',        
        #exclude = ('title','description','picture','price','created','modified',)
        #fields = ('title','description','picture','price','created','modified',)


